package com.rajaev.dtu.tractor.domain.repository.mysql;

import com.rajaev.dtu.tractor.domain.entity.FaultCodePo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @Created with IDEA
 * @author: tianjie
 * @Date:2019/4/25
 * @Time:15:44
 */
@Mapper
@Repository
public interface FaultLevelDao {


    @Select("select  `id`," +
            "  `code`," +
            "  `comments`," +
            "  `handle_suggestion` as handleSuggestion," +
            "  `level`  from t_fault_master_code where code = #{code}")
    FaultCodePo selectFaultByCode(String code);
}
